<?php
class Security extends CI_Controller{
    function __construct()
    {
        parent::__construct();
    }
    function index()
    {
        
    }
    function adminLogin()
    {
        if($_POST)
        {
            $username=$this->input->post("username");
            $password=$this->input->post("password");
            if($username=="admin"&&$password=="admin")
            {
              $this->session->set_userdata("admin_login_status","true");   
              redirect(base_url()."index.php/admin_user/");
            }
            else $this->load->view("admin/login");
        }
        else $this->load->view("admin/login");
    }
    function adminLogout()
    {
        $this->session->unset_userdata("admin_login_status");
        $this->load->view("admin/login");
    }
}

?>